﻿using System;
using NHibernate.Validator.Engine;

namespace TestBat.Models.Validators
{
    [AttributeUsage(AttributeTargets.Class)]
    [ValidatorClass(typeof(ScheduleDateRangeValidator))]
    public class ScheduleDateRangeAttribute : Attribute, IRuleArgs
    {
        public string Message
        {
            get
            {
                return "Start must be before end";
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }
}
